/*******************************************************************************
 * 
 * Copyright:
 * 
 * License:
 * 
 * Authors:
 * 
 ******************************************************************************/

/*******************************************************************************
 * 
 * #asset(ui_mov/*) #asset(qx/mobile/icon/${qx.mobile.platform}/*)
 * #asset(qx/mobile/icon/common/*)
 * 
 ******************************************************************************/

/**
 * This is the main application class of your custom application "ui_mov"
 */
qx.Class.define("ui_mov.views.welcome", {
			extend : qx.ui.mobile.page.NavigationPage,
			construct : function() {
				this.base(arguments);
				this.set({
							title : "Bienvenido!", // will be replaced by
							// username
							showBackButton : false,
							backButtonText : "Volver"
						});
				var buttoni = new qx.ui.mobile.form.Button("Seleccionar Intereses");
				var buttonn = new qx.ui.mobile.form.Button("Ver Noticias");
				var buttons = new qx.ui.mobile.form.Button("Salir");
				this.add(buttoni);
				this.add(buttonn);
				this.add(buttons);

				buttoni.addListener("tap", function() {
							window.pages.intereses.show();
						}, this);
				buttonn.addListener("tap", function() {
							window.pages.noticiasroot.show();
						}, this);
				buttons.addListener("tap", function() {
							window.salir();
						}, this);
			}
		});
